//
//  PurListBaoJiaInforTableViewCell.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/10.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "PurListBaoJiaInforTableViewCell.h"
#import "AllBaoJiaListTableViewCell.h"

@interface PurListBaoJiaInforTableViewCell ()<UITableViewDelegate,UITableViewDataSource>
@property(nonatomic,strong)GLGWView * bankgroundView;
@end

@implementation PurListBaoJiaInforTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.bankgroundView = [[GLGWView alloc] initWithInSuperView:self.contentView];
        self.bankgroundView.backgroundColor = [UIColor whiteColor];
        [self.bankgroundView setViewShadowWidth:3.0 theCornerRadius:3.0];
        [self.bankgroundView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView.mas_left).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.right.equalTo(self.contentView.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(15));
            make.top.equalTo(self.contentView.mas_top).offset(kHeightProportion_In_iPhoneTriploid(10));
            make.bottom.equalTo(self.contentView.mas_bottom).offset(-kHeightProportion_In_iPhoneTriploid(20));
        }];
        //
        GLGWLabel * baojiaListlabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(kWidthProportion_In_iPhoneTriploid(15), kHeightProportion_In_iPhoneTriploid(10), KScreenWidth - kWidthProportion_In_iPhoneTriploid(60), kHeightProportion_In_iPhoneTriploid(22)) theFont:SYSTEMFONT(16) theColor:kColor_Rule_Black inSuperView:self.bankgroundView];
        baojiaListlabel.text = @"已收到的报价";
        //
        UITableView * baoJiaTableView = [[UITableView alloc] initWithFrame:CGRectMake(baojiaListlabel.x, kY_With_View(baojiaListlabel, 5), baojiaListlabel.width, kHeightProportion_In_iPhoneTriploid(60)) style:UITableViewStylePlain];
        baoJiaTableView.showsVerticalScrollIndicator = NO;
        baoJiaTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
        baoJiaTableView.delegate = self;
        baoJiaTableView.dataSource = self;
        baoJiaTableView.rowHeight = kHeightProportion_In_iPhoneTriploid(30);
        baoJiaTableView.scrollEnabled = NO;
        [self.bankgroundView addSubview:baoJiaTableView];
        
    }
    return self;
}

#pragma mark --UITableViewDelegate,UITableViewDataSource
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 2;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    AllBaoJiaListTableViewCell * cell = [AllBaoJiaListTableViewCell cellWithTableView:tableView];
    return cell;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
